package com.shaoyu.elasticsearch.service;

import com.shaoyu.elasticsearch.base.BaseDataType;
import com.shaoyu.elasticsearch.entity.ElasticsearchIndex;
import org.elasticsearch.action.delete.DeleteResponse;
import org.elasticsearch.action.get.GetResponse;

public interface ElasticSearchIndexService {
     <T extends BaseDataType> boolean createIndex(ElasticsearchIndex index, T document);
    GetResponse getDocument(ElasticsearchIndex index, int idx);
    DeleteResponse deleteDocument(ElasticsearchIndex index, int idx);

}
